package com.zjitc.model;

import java.util.Date;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/17 15:48
 * @description:
 */
public class User {

  private Integer id;
  private String username;
  private String password;
  private String phone;
  private String address;
  private Object question;
  private Object answer;
  private int role;
  private Date create_time;
  private Date update_time;

  public User() {
  }

  public User(Integer id, String username, String password, String phone, String address) {
    this.id = id;
    this.username = username;
    this.password = password;
    this.phone = phone;
    this.address = address;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  @Override
  public String toString() {
    return "User{" +
        "id=" + id +
        ", username='" + username + '\'' +
        ", password='" + password + '\'' +
        ", phone='" + phone + '\'' +
        ", address='" + address + '\'' +
        '}';
  }

  public void setQuestion(Object question) {
    this.question = question;
  }

  public void setAnswer(Object answer) {
    this.answer = answer;
  }
}

